﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
namespace Jemer.Domain.Entities
{
    //新闻信息表
    public class NewsInfo
    {

        /// <summary>
        /// 主键标识
        /// </summary>
        [Key]
        [Required]
        [MaxLength(4)]
        public int NewsID { get; set; }

        /// <summary>
        /// 新闻标题
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string NewsTitle { get; set; }

        /// <summary>
        /// 新闻内容
        /// </summary>
        [Required]
        public string NewsContent { get; set; }

        /// <summary>
        /// 新闻类别
        /// </summary>

        [Required]
        [MaxLength(4)]
        public int NewsType { get; set; }

        /// <summary>
        /// 出处/作者
        /// </summary>
        [MaxLength(50)]
        public string Writer { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        [MaxLength(8)]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(200)]
        public string Remark { get; set; }


    }
}

